package com.cashmama.market.api.domain.vo.user;

import com.fqgj.xjd.user.client.response.UserAccessInfo;

/**
 * @program: market-api
 * @description 用户注册出参
 * @author: frank
 * @create: 2019-12-23 11:11
 **/
public class UserRegisterVO {

    /**
     * 用户令牌
     */
    private String token;

    private String email;

    private String mobile;

    /**
     * pincode 或 birthday 是否填写完成
     */
    private Boolean pinCodeAndBirthdayFilledStatus;

    private String userCode;

    /**
     * 产品类目
     */
    private String categoryCode;

    private boolean newRegister;

    private Boolean needSmsReport;

    public UserRegisterVO(UserAccessInfo userAuthAccessInfo) {
        this.token = userAuthAccessInfo.getToken();
        this.mobile=userAuthAccessInfo.getMobile();
        this.userCode=userAuthAccessInfo.getUserCode();
        this.categoryCode=userAuthAccessInfo.getProductCategory();
    }

    public Boolean getNeedSmsReport() {
        return needSmsReport;
    }

    public UserRegisterVO setNeedSmsReport(Boolean needSmsReport) {
        this.needSmsReport = needSmsReport;
        return this;
    }

    public String getToken() {
        return token;
    }

    public UserRegisterVO setToken(String token) {
        this.token = token;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public UserRegisterVO setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public UserRegisterVO setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public Boolean getPinCodeAndBirthdayFilledStatus() {
        return pinCodeAndBirthdayFilledStatus;
    }

    public UserRegisterVO setPinCodeAndBirthdayFilledStatus(Boolean pinCodeAndBirthdayFilledStatus) {
        this.pinCodeAndBirthdayFilledStatus = pinCodeAndBirthdayFilledStatus;
        return this;
    }

    public String getUserCode() {
        return userCode;
    }

    public UserRegisterVO setUserCode(String userCode) {
        this.userCode = userCode;
        return this;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public UserRegisterVO setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
        return this;
    }

    public boolean isNewRegister() {
        return newRegister;
    }

    public UserRegisterVO setNewRegister(boolean newRegister) {
        this.newRegister = newRegister;
        return this;
    }
}
